package com.sancai.fruit.model;

import com.sancai.fruit.bean.Movie;
import com.sancai.fruit.contract.MianActivityContract;
import com.sancai.fruit.utils.ApiManager;

import io.reactivex.Observable;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.schedulers.Schedulers;


/**
 * Created by xiangyao on 2018/8/2.
 */

public class MianActivityModel implements MianActivityContract.Model {
    @Override
    public Observable<Movie> findMovies(String start, String count) {
        return ApiManager.getApistore().getMovie(start, count).subscribeOn(Schedulers.io()).observeOn(AndroidSchedulers.mainThread());
    }
}
